package com0626;

import java.util.Scanner;

public class Person {
    public String name;

    int score;

    String type;//记录用户出拳类型

    public int showhand(){
        //从键盘上输入的
        Scanner scan = new Scanner(System.in);
        System.out.println("请"+name+"出拳（1.石头 2.剪刀 3.布）");
        int n = scan.nextInt();

        if (n==1)
            type="石头";
        else if(n==2)
            type="剪刀";
        else
            type="布";
        return n;
    }
}
